package com.interview.service.impl;

import com.interview.dao.ParameterMapper;
import com.interview.pojo.Parameter;
import com.interview.service.ParameterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("ParameterServiceImpl")
public class ParameterServiceImpl implements ParameterService {

    @Autowired
    private ParameterMapper parameterMapper;

    @Override
    public void add(Parameter parameter) {


        System.out.println(parameter);
        try {
            parameterMapper.insertSelective(parameter);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
